<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button @click="del">删除</button>
  </div>
</template>
<script>
export default {
    data(){
        return {
            params:{}
        }
    },
    created(){
        
        this.$http.post('/api/add',{username:'lixs',password:'122',idcard:'1212',address:'2323'}).then(res => {

        })
    },
    methods:{
        del(){
            this.$http.get('/api/del',{params:{}})
        }
    }
}
</script>